package com.icloud.article.boot.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.icloud.article.boot.model.Upvote;
import com.icloud.article.boot.vo.StatisticsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 点赞记录 Mapper 接口
 * </p>
 *
 * @author pujiulin
 * @since 0000-00-00
 */
public interface UpvoteDao {


    /**
     * 根据帖子查询点赞数量
     * @param wrapper
     * @return
     */
    List<StatisticsVo> queryUpvoteCountByArticle(@Param("ew") Wrapper<Upvote> wrapper);

    List<StatisticsVo> queryUpvoteCountByDiscuss(@Param("ew") Wrapper<Upvote> wrapper);
}
